let baseUrl = "./management/";
module.exports = {
    entry: baseUrl + 'src/main.js',
    output: {
        path: baseUrl + 'dist',
        publicPath:baseUrl+'/dist/',
        filename: 'build.js'
    },
    module: {
        loaders: [{
            test: /\.js$/,
            loader: 'babel-loader',
            exclude: /node_modules/
        },
        {
            test: /\.vue$/,
            loader: 'vue-loader'
        },
        {
            test: /\.css$/,
            loader: "style-loader!css-loader"
        },
        {
            test: /\.less$/,
            use:[
                'style-loader',
                'css-loader',
                {loader:'less-loader'}
            ]
        },
        {
            test: /\.(gif|jpg|png|woff|svg|eot|ttf)\??.*$/,
            loader: 'url-loader?limit=50000&name=[path][name].[ext]'
        },
        { test: /\.json$/, loader: "json-loader" }
        ]
    },
    resolve: {
        extensions: ['.vue', '.js', '.json', '.css', '.less'],
        alias: {
            vue: 'vue/dist/vue.js'
        },
        modules:['node_modules','management/src/styles/common','management/src/common']
    }
}